import { createApp } from 'vue' ;
import axios from "axios";
import VueAxios from "vue-axios";

import 'bootstrap/dist/css/bootstrap.min.css' ;

import App from './App.vue' ;

// axios.defaults.baseURL = '/api' ;

axios.interceptors.request.use(
    cfg => { console.log(cfg); return cfg; },
    err => { console.log( err ) ; return Promise.reject( err ); }
);

axios.interceptors.response.use(
    resp => { console.log(resp); return resp; },
    err => { console.log( err ) ; return Promise.reject( err ); }
);

const app = createApp(App);

app.use( VueAxios , axios );

app.mount('#app');
